-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Rust: add invoke-agent example in bedrock-agent-runtime #7479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hi @mattiapitossi , thanks for contributing. The code looks good, but the test cases are missing for this code piece. You can refer this jsv3 PR of invoke-agent which has tests. PR Link: #6129 |
Hi @tejasgn1, thanks for the feedback. I had to refactor a bit the code to make it unit-testable as it's a bit a difficult to mock directly the completion field of the EventReceiver result, so I directly mock the recv to make the test as close as possible to the one written in JS. Let me know what do you think, thanks! Test demo:
![]() |
Hi there,
This pull request adds an example to use the invoke agent command in Rust:
Let me know if it makes sense for you.
Thanks!
command:
cargo run --bin invoke-agent
closes #7480
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.